#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>


int Fib(int a) {
	if (a == 0) {
		return 0;
	}
	else if (a == 1) {
		return 1;
	}
	else {
		return Fib(a - 1) + Fib(a - 2);
	}
}
int main() {
	int num;
	while (scanf("%d", &num) != EOF) {
		printf("FIB(%d) = %d\n", num, Fib(num));
	}
}